<%@page import="java.util.List"%>
<%@page import="java.sql.*"%>
<%@page import="model.DBAdapter"%>
<%
  	response.setHeader( "Cache-Control", "no-store, no-cache"); 
	response.setHeader("Pragma","no-cache"); 
	response.setDateHeader ("Expires", 0); 
%>
<%
	DBAdapter adapter = DBAdapter.getInstance();
	ResultSet rs = null;
	String query = "";
	adapter.open();
	int totalLevel = -1;
	int sessionUserID = -1;
	int sessionUserLevel = -1;
	String login_type = "";
	try {
  		sessionUserID = ((Integer)session.getAttribute("userId")).intValue();
  		sessionUserLevel = ((Integer)session.getAttribute("userLevel")).intValue();
  		login_type = (String)session.getAttribute("login_type");
  	} catch(Exception e) {
  		response.sendRedirect("login.jsp"); 
  	}
  	
  	String default_page = "class";
  	
	if(login_type.equals("Student")) {
		default_page = "studentview";
	} else if(login_type.equals("Administrator")) {
		default_page = "class";
	} else if(login_type.equals("Evaluator")) {
		default_page = "evaluator";
	} 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<title>IGNOU Student Assignment Management System</title> 
	<link rel="stylesheet" type="text/css" href="../css/header.css" />
	<link rel="stylesheet" type="text/css" href="../css/style.css" />
	<script type="text/javascript" src="../script/login.js"></script>
	<script type="text/javascript" src="../script/ajax.js"></script>
	<script type="text/javascript" src="../script/main.js"></script>
	<script type="text/javascript" src="../script/menu.js"></script>
	<script type="text/javascript" src="../script/class.js"></script>	
	<script type="text/javascript" src="../script/settings.js"></script>
	<script type="text/javascript" src="../script/accessories.js"></script>	
	<script type="text/javascript" src="../script/user.js"></script>
	<script type="text/javascript" src="../script/validation.js"></script>	
	<script type="text/javascript" src="../script/levels.js"></script>
	<script type="text/javascript" src="../script/search.js"></script>
	<script type="text/javascript" src="../script/constants.js"></script>
	<script type="text/javascript" src="../script/go.js"></script>	
	<script type="text/javascript" src="../script/student.js"></script>
	<script type="text/javascript" src="../script/studentFee.js"></script>
	<script type="text/javascript" src="../script/expenses.js"></script>
	<script type="text/javascript" src="../script/CalendarPopup.js"></script>	
	<script>
		var cal = new CalendarPopup();
	</script>		
</head>

	<body onload = "initPanel('<%=default_page%>');" >
		<div id='blackoutProgress'></div>
			<div id='divpopupProgress'>
				<div id='pop_contentProgress'>
					<img id='progressImage' name='progressImage' src='../images/loaderNew.gif'></img>
				</div>
			</div>
		<div align="center">
		<div id="window" >
			<jsp:include page="menu.jsp"/>
			 <div class="div-quickLink">
			 	<span id="quickLinkBar">
			 		<jsp:include page="quickLink.jsp"/>
			 	</span>
			 </div> 
			<div class="div-search"> 
				<jsp:include page="search.jsp"/> 
			</div>
			<span id="holder">
				
			</span>
				
		 </div>
		</div> 
	</body>
</html>